ABC146 B - ROT N
https://atcoder.jp/contests/abc146/tasks/abc146_b
提出
code: python
import string
n = int(input())
s = input()
ans = ""
for i in range(len(s)):
index = string.ascii_uppercase.find(s
i
)
newIndex = index + n - 26 if 26 <= index + n else index + n
ans += string.ascii_uppercase
newIndex
print(ans)
テーマ
#ascii